
<div style="margin:100px auto 0;width:500px;">

	<?php $form = $this->beginWidget('CActiveForm', array(
		'htmlOptions'=>array('class'=>'form-horizontal')
		)); 
	?>
	  <div class="form-group">
	    <label for="username" class="col-sm-3 control-label">用户名：</label>
	    <div class="col-sm-5">
	      <?php echo $form->textField($loginForm, 'username', array('class'=>'form-control', 'id'=>'username', 'placeholder'=>'username'));?>
	    </div>
	    <div class="col-sm-4">
			<?php echo $form->error($loginForm, 'username'); ?>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="password" class="col-sm-3 control-label">密码：</label>
	    <div class="col-sm-5">
	      <?php echo $form->passwordField($loginForm, 'password', array('class'=>'form-control', 'id'=>'password', 'placeholder'=>'Password')); ?>
	    </div>
	    <div class="col-sm-4">
			<?php echo $form->error($loginForm, 'password'); ?>
	    </div>
	  </div>
	  <div class="form-group">
		<label for="verify" class="col-sm-3 control-label">验证码：</label>
		<div class="col-sm-3">
			<?php
				echo $form->textField($loginForm, 'verify', array('class'=>'form-control', 'id'=>'verify', 'placeholder'=>'验证码'));
			?>
		</div>
		<div class="col-sm-2">
			<?php 
				$this->widget('CCaptcha',
					array(
						'showRefreshButton'=>false,
						'clickableImage'=>true,
						'imageOptions'=>array(
							'id'=>'captcha',
							'alt'=>'点击换图',
							'title'=>'点击换图',
							'style'=>'cursor:pointer'
							)
						)
					); 
			?>
		</div>
		<div class="col-sm-3">
			<?php echo $form->error($loginForm, 'verify'); ?>
		</div>
	  </div>
	  <div class="form-group">
	    <div class="col-sm-offset-3 col-sm-9">
	      <div class="checkbox">
	        <label>
	        	<?php echo $form->checkBox($loginForm, 'remmember'); ?>
	        	记住登录状态
	        </label>
	      </div>
	    </div>
	  </div>
	  <div class="form-group">
	    <div class="col-sm-offset-3 col-sm-9">
	      <button type="submit" class="btn btn-default">登录</button>
	    </div>
	  </div>
	<?php $this->endWidget(); ?>
</div>